/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.dao;

import io.renren.common.dao.BaseDao;
import io.renren.dto.SysRoleDTO;
import io.renren.entity.SysRoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 角色管理
 * 
 * @author Mark sunlightcs@gmail.com
 */
@Mapper
public interface SysRoleDao extends BaseDao<SysRoleEntity> {
    @Select(" select * from  sys_role A,sys_role_user B where  B.role_id = A.id   and B.user_id = '${id}' ")
    List<SysRoleDTO>  getRoleName(Long id);
}
